package com.cardetective.shopcar.network.model

import android.os.Parcelable
import kotlinx.parcelize.Parcelize

// 默认地址
data class AddressInfoModel(
    val consigneeAddressIdPath: String?,
    val consigneeAddressPath: String?,
    val detail: String?,
    val id: String?,
    val isDefault: Boolean?,
    val memberId: String?,
    val mobile: String?,
    val name: String?
)

/**
 * 地址列表
 */
@Parcelize
data class AddressListModel(
    val current: Int?,
    val pages: Int?,
    val records: List<AddressListRecord>?,
    val size: Int?,
    val total: Int?
): Parcelable
@Parcelize
data class AddressListRecord(
    val consigneeAddressIdPath: String?,
    val consigneeAddressPath: String?,
    val detail: String?,
    val id: String,
    val isDefault: Boolean,
    val memberId: String?,
    val mobile: String?,
    val name: String?
): Parcelable